Ligne 31 : le code suppose que $path est un array.
Dans mon cas, il est null.
Le patch suivant fonctionne pour moi :
Je ne suis pas rentré plus loin dans l'analyse.
Mais ce serait peut-être à faire remonter ?
Dans mon cas, il est null.
Le patch suivant fonctionne pour moi :
Code:
if ([B]is_array($path) && [/B]in_array($item->id, $path))
{
$class .= ' active';
}
elseif ($item->type == 'alias')
{
$aliasToId = $item->params->get('aliasoptions');
if (count($path) > 0 && $aliasToId == $path[count($path) - 1])
{
$class .= ' active';
}
elseif ([B]is_array($path) && [/B]in_array($aliasToId, $path))
{
$class .= ' alias-parent-active';
}
}
Mais ce serait peut-être à faire remonter ?




Commentaire